package package1;
/*
 *  user:38917
 *  date:2025/5/1
 *  time:15:01
 */

class Dog{
    public String name;
    public int age;
    public String color;
    //
    public void eat(){
        System.out.println("eat food");
    }
    public void bark(){
        System.out.println("汪汪汪...");
    }
}
class Student{
    public String name;
    public int age;
    public int id;
    public double score;
    public String height;
    public String weight;
    //
    public void exam(){
        System.out.println("参加考试");
    }
    public void doHomework(){
        System.out.println("写作业");
    }
}
public class WashingMachine {
    //品牌
    public String brand;
    //型号
    public String model;
    //大小
    public Double size;
    //重量
    public Double weight;
    //价格
    public Double price;
    //洗衣服
    public void wash() {
        System.out.println("Washing clothes...");
    }
    //脱水
    public void dehydrate() {
        System.out.println("Dehydrating clothes...");
    }
}
